#include <stdio.h>

int myatoi(char* str)
{
	int ret = 0;
	while(*str != '\0')
	{
		ret = 10 * ret + (*str - '0');
		str++;
	}
	return ret;
}
int main(int argc, const char *argv[])
{
	char arr[6] = { 0 };
	scanf("%s", arr);
	int ret = myatoi(arr);
	printf("%d\n", ret);
	return 0;
}
